home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global rwObj
- if the machineType <> 256 then
- set the colorDepth to 256
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- makeObjIfNeeded()
- rwObj(mPatToWindow, -5)
- end if
- end
-
- on stopMovie
- global rwObj
- if the machineType <> 256 then
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- closeXLib()
- end if
- end
-
- on makeObjIfNeeded
- global rwObj
- if not objectp(rwObj) then
- set rwObj to RearWindow(mnew, "M")
- if value(rwObj) < 0 then
- alert("System error" && rwObj && "trying to create the RearWindow object in RAM (multiple-monitor config).")
- stopMovie()
- exit
- end if
- if the freeBlock < rwObj(mGetMemoryNeeded) then
- if objectp(rwObj) then
- rwObj(mdispose)
- set rwObj to RearWindow(mnew, "S")
- end if
- if value(rwObj) < 0 then
- alert("System error" && rwObj && "trying to create the RearWindow object in RAM (single-monitor config).")
- stopMovie()
- exit
- end if
- end if
- end if
- end
-